package com.foreknow.demo2.Test2;

public class ClassA implements InterfaceA{
    @Override
    public int method(int n) {
        int add = 0;
        if (n >= 1){
            for (int i = 1;i <= n;i++){
                add += i;
            }
        }
        return add;
    }
}
